<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <!-- meta视口标签
        width设置视口宽度，可以设置device-width特殊值
        initial-scale设置初始缩放比
        maximum-scale设置最大缩放比
        minimum-scale设置最大缩放比
        user-scalable设置用户是否可以缩放，yes或no(1或0) -->
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"
    />
    <title>Document</title>
    <link rel="stylesheet" href="../../css/normalize.css" />
    <style>
      section {
        width: 100%;
        /* 该布局方式最好设置最大最小，防止缩放导致问题 */
        max-width: 980px;
        min-width: 320px;
      }
      section div {
        float: left;
        width: 50%;
        height: 400px;
      }
      section div:first-child {
        background-color: red;
      }
      section div:last-child {
        background-color: purple;
      }
    </style>
  </head>
  <body>
    <section>
      <div></div>
      <div></div>
    </section>
  </body>
</html>
